@(id: String, width: Int)(implicit context: gitbucket.core.controller.Context)
@import context._
<input type="text" name="@id" id="@id" style="width: @{width}px; margin-bottom: 0px;"/>
<script>
$(function(){
  $('#@id').typeahead({
    source: function (query, process) {
      return $.get('@path/_user/proposals', { query: query },
        function (data) {
          return process(data.options);
        });
    }
  });
});
</script>
